﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F7B RID: 3963
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicStartCsReq : IMessage<RogueMagicStartCsReq>, IMessage, IEquatable<RogueMagicStartCsReq>, IDeepCloneable<RogueMagicStartCsReq>, IBufferMessage
	{
		// Token: 0x1700323D RID: 12861
		// (get) Token: 0x0600B189 RID: 45449 RVA: 0x001DFD6B File Offset: 0x001DDF6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicStartCsReq> Parser
		{
			get
			{
				return RogueMagicStartCsReq._parser;
			}
		}

		// Token: 0x1700323E RID: 12862
		// (get) Token: 0x0600B18A RID: 45450 RVA: 0x001DFD72 File Offset: 0x001DDF72
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicStartCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700323F RID: 12863
		// (get) Token: 0x0600B18B RID: 45451 RVA: 0x001DFD84 File Offset: 0x001DDF84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicStartCsReq.Descriptor;
			}
		}

		// Token: 0x0600B18C RID: 45452 RVA: 0x001DFD8B File Offset: 0x001DDF8B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicStartCsReq()
		{
		}

		// Token: 0x0600B18D RID: 45453 RVA: 0x001DFDAC File Offset: 0x001DDFAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicStartCsReq(RogueMagicStartCsReq other) : this()
		{
			this.selectStyleType_ = other.selectStyleType_;
			this.startDifficultyIdList_ = other.startDifficultyIdList_.Clone();
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.areaId_ = other.areaId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B18E RID: 45454 RVA: 0x001DFE0A File Offset: 0x001DE00A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicStartCsReq Clone()
		{
			return new RogueMagicStartCsReq(this);
		}

		// Token: 0x17003240 RID: 12864
		// (get) Token: 0x0600B18F RID: 45455 RVA: 0x001DFE12 File Offset: 0x001DE012
		// (set) Token: 0x0600B190 RID: 45456 RVA: 0x001DFE1A File Offset: 0x001DE01A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SelectStyleType
		{
			get
			{
				return this.selectStyleType_;
			}
			set
			{
				this.selectStyleType_ = value;
			}
		}

		// Token: 0x17003241 RID: 12865
		// (get) Token: 0x0600B191 RID: 45457 RVA: 0x001DFE23 File Offset: 0x001DE023
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> StartDifficultyIdList
		{
			get
			{
				return this.startDifficultyIdList_;
			}
		}

		// Token: 0x17003242 RID: 12866
		// (get) Token: 0x0600B192 RID: 45458 RVA: 0x001DFE2B File Offset: 0x001DE02B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x17003243 RID: 12867
		// (get) Token: 0x0600B193 RID: 45459 RVA: 0x001DFE33 File Offset: 0x001DE033
		// (set) Token: 0x0600B194 RID: 45460 RVA: 0x001DFE3B File Offset: 0x001DE03B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x0600B195 RID: 45461 RVA: 0x001DFE44 File Offset: 0x001DE044
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicStartCsReq);
		}

		// Token: 0x0600B196 RID: 45462 RVA: 0x001DFE54 File Offset: 0x001DE054
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicStartCsReq other)
		{
			return other != null && (other == this || (this.SelectStyleType == other.SelectStyleType && this.startDifficultyIdList_.Equals(other.startDifficultyIdList_) && this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && this.AreaId == other.AreaId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B197 RID: 45463 RVA: 0x001DFEC8 File Offset: 0x001DE0C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SelectStyleType != 0U)
			{
				num ^= this.SelectStyleType.GetHashCode();
			}
			num ^= this.startDifficultyIdList_.GetHashCode();
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B198 RID: 45464 RVA: 0x001DFF3C File Offset: 0x001DE13C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B199 RID: 45465 RVA: 0x001DFF44 File Offset: 0x001DE144
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B19A RID: 45466 RVA: 0x001DFF50 File Offset: 0x001DE150
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.baseAvatarIdList_.WriteTo(ref output, RogueMagicStartCsReq._repeated_baseAvatarIdList_codec);
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.AreaId);
			}
			this.startDifficultyIdList_.WriteTo(ref output, RogueMagicStartCsReq._repeated_startDifficultyIdList_codec);
			if (this.SelectStyleType != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.SelectStyleType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B19B RID: 45467 RVA: 0x001DFFCC File Offset: 0x001DE1CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SelectStyleType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SelectStyleType);
			}
			num += this.startDifficultyIdList_.CalculateSize(RogueMagicStartCsReq._repeated_startDifficultyIdList_codec);
			num += this.baseAvatarIdList_.CalculateSize(RogueMagicStartCsReq._repeated_baseAvatarIdList_codec);
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B19C RID: 45468 RVA: 0x001E0048 File Offset: 0x001DE248
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicStartCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SelectStyleType != 0U)
			{
				this.SelectStyleType = other.SelectStyleType;
			}
			this.startDifficultyIdList_.Add(other.startDifficultyIdList_);
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B19D RID: 45469 RVA: 0x001E00BA File Offset: 0x001DE2BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B19E RID: 45470 RVA: 0x001E00C4 File Offset: 0x001DE2C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 24U || num == 26U)
					{
						this.baseAvatarIdList_.AddEntriesFrom(ref input, RogueMagicStartCsReq._repeated_baseAvatarIdList_codec);
						continue;
					}
					if (num == 48U)
					{
						this.AreaId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 80U || num == 82U)
					{
						this.startDifficultyIdList_.AddEntriesFrom(ref input, RogueMagicStartCsReq._repeated_startDifficultyIdList_codec);
						continue;
					}
					if (num == 96U)
					{
						this.SelectStyleType = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040047DC RID: 18396
		private static readonly MessageParser<RogueMagicStartCsReq> _parser = new MessageParser<RogueMagicStartCsReq>(() => new RogueMagicStartCsReq());

		// Token: 0x040047DD RID: 18397
		private UnknownFieldSet _unknownFields;

		// Token: 0x040047DE RID: 18398
		public const int SelectStyleTypeFieldNumber = 12;

		// Token: 0x040047DF RID: 18399
		private uint selectStyleType_;

		// Token: 0x040047E0 RID: 18400
		public const int StartDifficultyIdListFieldNumber = 10;

		// Token: 0x040047E1 RID: 18401
		private static readonly FieldCodec<uint> _repeated_startDifficultyIdList_codec = FieldCodec.ForUInt32(82U);

		// Token: 0x040047E2 RID: 18402
		private readonly RepeatedField<uint> startDifficultyIdList_ = new RepeatedField<uint>();

		// Token: 0x040047E3 RID: 18403
		public const int BaseAvatarIdListFieldNumber = 3;

		// Token: 0x040047E4 RID: 18404
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(26U);

		// Token: 0x040047E5 RID: 18405
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x040047E6 RID: 18406
		public const int AreaIdFieldNumber = 6;

		// Token: 0x040047E7 RID: 18407
		private uint areaId_;
	}
}
